[HVM][SVM] Fix PIO breakage (fixed for VMX in previous changeset).
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 2 Aug 2006 14:47:04 +0000 (15:47 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 2 Aug 2006 14:47:04 +0000 (15:47 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/hvm/svm/svm.c

index 01d48b2524d5fb93e796b4abf53d07953e3cb16f..bb16553f5538520d0bfbf731ae468bf7b9ff8e9d 100644 (file)
@@ -1484,7 +1484,7 @@ static void svm_io_instruction(struct vcpu *v)
                     count = (addr & ~PAGE_MASK) / size;
             }
             else    
-                vmcb->rip = vmcb->exitinfo2;
+                regs->eip = vmcb->exitinfo2;
 
             send_pio_req(regs, port, count, size, addr, dir, 1);
         }
@@ -1495,7 +1495,7 @@ static void svm_io_instruction(struct vcpu *v)
          * On SVM, the RIP of the intruction following the IN/OUT is saved in
          * ExitInfo2
          */
-        vmcb->rip = vmcb->exitinfo2;
+        regs->eip = vmcb->exitinfo2;
 
         if (port == 0xe9 && dir == IOREQ_WRITE && size == 1) 
             hvm_print_line(v, regs->eax); /* guest debug output */